package com.itheima.stock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author:gzc
 * @Date: 2025/10/23 21:04
 * @Description:
 */
@Data
@Component
@ConfigurationProperties("id-worker.config")
public class IdWorkerProperties {
    /**
     * 机器id
     */
    private long machineId;
    /**
     * 数据中心id
     */
    private long dataCenterId;
}
